load("@io_bazel_rules_go//go:def.bzl", "go_test")

go_test(
    name = "clustertablestest_test",
    timeout = "short",
    srcs = [
        "cluster_tables_test.go",
        "main_test.go",
        "tables_test.go",
    ],
    flaky = True,
    shard_count = 50,
    deps = [
        "//pkg/config",
        "//pkg/domain",
        "//pkg/errno",
        "//pkg/executor",
        "//pkg/infoschema",
        "//pkg/infoschema/internal",
        "//pkg/kv",
        "//pkg/meta/autoid",
        "//pkg/parser",
        "//pkg/parser/auth",
        "//pkg/parser/model",
        "//pkg/parser/mysql",
        "//pkg/parser/terror",
        "//pkg/planner/core",
        "//pkg/privilege/privileges",
        "//pkg/server",
        "//pkg/session",
        "//pkg/session/txninfo",
        "//pkg/sessionctx/variable",
        "//pkg/store/mockstore",
        "//pkg/store/mockstore/mockstorage",
        "//pkg/store/mockstore/unistore",
        "//pkg/testkit",
        "//pkg/testkit/external",
        "//pkg/testkit/testsetup",
        "//pkg/types",
        "//pkg/util",
        "//pkg/util/dbterror/exeerrors",
        "//pkg/util/gctuner",
        "//pkg/util/logutil",
        "//pkg/util/memory",
        "//pkg/util/resourcegrouptag",
        "//pkg/util/set",
        "//pkg/util/stmtsummary",
        "@com_github_gorilla_mux//:mux",
        "@com_github_pingcap_failpoint//:failpoint",
        "@com_github_pingcap_fn//:fn",
        "@com_github_pingcap_kvproto//pkg/deadlock",
        "@com_github_pingcap_kvproto//pkg/metapb",
        "@com_github_pingcap_tipb//go-tipb",
        "@com_github_stretchr_testify//require",
        "@com_github_tikv_client_go_v2//oracle",
        "@com_github_tikv_client_go_v2//testutils",
        "@com_github_tikv_pd_client//http",
        "@org_golang_google_grpc//:grpc",
        "@org_uber_go_goleak//:goleak",
        "@org_uber_go_zap//:zap",
    ],
)
